package service.impl;

import dao.CommentArrayDao;
import dao.impl.CommentArrayDaoImpl;
import pojo.Comments;
import service.CommentArrayService;

import java.sql.SQLException;
import java.util.ArrayList;

public class CommentArrayServiceImpl implements CommentArrayService {

    public ArrayList<Comments> findCommentChild(Integer cid) throws SQLException, ClassNotFoundException {
        ArrayList<Comments> commentsChild = new ArrayList<>();
        CommentArrayDao commentArrayDao = new CommentArrayDaoImpl();
        commentsChild = commentArrayDao.findCommentChild(cid);
        return commentsChild;
    }
}
